<?php
require('lib/verify.php');
require('lib/has_char.php');

$_category = "wardkp";
$_title = "Profile";
require('lib/head.php');

$forum_id = $pun_user["id"];
boxTop("wardkp: Profile");
?>
Welcome to your wardkp Profile.
<br /><br />
<b>Select Your Active Character</b><br />
Your active character is the one you're currently logged into wardkp as; you generally don't need to change your active character unless you're raiding with two characters.<br />
<br />
<i>Click a character's name to make it active.</i><br />
<?php
$sql = "select *, wm_systems.* from wm_characters left join wm_systems on wm_characters.character_system_id = wm_systems.system_id where character_forum_id='$forum_id'";
$result = $db->query($sql);
while($chara = $db->fetch_assoc($result)) {
if($chara["character_active"]) {
?>
<b><?=$chara["character_name"]?></b> (Active)<br />
<?php
}
else {
?>
<a href="make-active.php?id=<?=$chara["character_id"]?>"><?=$chara["character_name"]?></a> (<?=$chara["system_name"]?>, <?=$chara["system_faction"]?> on <?=$chara["system_server"]?>)<br />
<?php
}
}
?>
<br />
<b>Register a New Character</b><br />
If you'd like to start raiding on a new character, <a href="register-character.php">register a new character</a>.  This character will become your new active character.
</ul>

<?php
boxBot();
?>



<?php
require('lib/foot.php');
?>

